﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Diablo3.Engine.Property
{
    /// <summary>
    /// 生命%
    /// </summary>
    public class LifePercent :ItemsProperty, IAffecteLifePercent
    {
        public LifePercent() { }

        public LifePercent(Double value)
        {
            Value = value;
        }
        
        public override string Des
        {
            get { return String.Format("+{0}% 生命值", Value); }
        }

        public Double Value { get; set; }

        #region IAffecteLifePercent 成员

        double IAffecteLifePercent.Affecte(double source)
        {
            return source + Value;
        }

        #endregion
    }
}
